package com.homework;

public class demo12 {
    public static void main(String[] args) {
        Shaopping p1 = new Shaopping();
        p1.name = "冰箱";
        p1.price = 1500;
        p1.color = "白色";
        p1.show();

        Shaopping p2 = new Shaopping();
        p2.name = "电视";
        p2.price = 1000;
        p2.color = "黑色";
        p2.show();

        Shaopping p3 = new Shaopping();
        p3.name = "桌子";
        p3.price = 300;
        p3.color = "棕色";
        p3.show();
    }
}
